package com.code.day07.LambdaStudy;
import java.util.function.Consumer;
public class DemoConsumer {
    public static void main(String[] args) {
        method(s -> System.out.println(s.length()), "ssss");
    }
    public static void method(Consumer<String> consumer, String s){
        consumer.accept(s);
    }
}
